<template>
	<view class="market">
		<u-sticky>
			<view class="tabs">
				<u-tabs :list="tabs" :inactiveStyle="{ color: '#ffffff', fontSize: '28rpx' }" :activeStyle="{ color: '#ffffff', fontSize: '28rpx', fontWeight: 'bold' }" lineColor="#b284dc"></u-tabs>
			</view>
		</u-sticky>
		<view class="row" v-for="i of 10" @click="navTo('/pages/manage/orderDetail')">
			<view class="header">
				<text class="time">2022-2-16 17:00:00</text>
				<text class="status">发布中</text>
			</view>
			<view class="main">
				<view class="col left">
					<u--image radius="5" width="200rpx" height="200rpx" mode="aspectFill" src="https://source.theone.art/watermarkResize/05c3fc604cbb3126d01ea4dc66a7d76d/8445729d333ebe3efffa7aa809d18273-16469713907440.5.png"></u--image>
				</view>
				<view class="col right">
					<view class="cell">
						<text class="label name">隔壁老王</text>
						<text class="value nickname">x1</text>
					</view>
					<view class="cell">
						<text class="label">艺术家</text>
						<text class="value nickname">老王</text>
					</view>
					<view class="cell">
						<text class="label">价格</text>
						<text class="value price">￥9,999,00</text>
					</view>
					<view class="cell">
						<text class="label">单号</text>
						<view class="value no">
							<text>SR38477684728384783</text>
							<text class="iconfont icon-fuzhi"></text>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		components: {
		},
		data() {
			return {
				//订单状态: 1,待付款  2,已完成，3,已取消 4,异常
				tabs: [
					{code: '', name: '全部'},
					{code: '1', name: '待付款'},
					{code: '2', name: '已完成'},
					{code: '3', name: '已取消'}
				]
			}
		},
		onLoad() {
			
		},
		methods: {
			change(cur){
				this.current = cur.detail.current
			}
		}
	}
</script>

<style lang="scss" scoped>
	.market{
		.tabs{
			padding: 0 0 20rpx 0;
			background-color: $uni-bg-color;
		}
		.row{
			padding: 20rpx 20rpx;
			margin-bottom: 20rpx;
			background-color: #484b5e;
			border-radius: 10rpx;
			.header{
				display: flex;
				justify-content: space-between;
				align-items: center;
				padding: 0rpx 0 20rpx 0;
				font-size: 25rpx;
			}
		}
		.main{
			background-color: #484b5e;
			display: flex;
			justify-content: space-between;
			.right{
				font-size: 25rpx;
				width: 100%;
				padding-left: 20rpx;
				.name{
					font-weight: bold;
					font-size: 28rpx;
					color: #ffffff;
				}
				.no{
					color: #ffffff;
					display: flex;
					.icon-fuzhi{
						font-size: 24rpx;
						margin-left: 10rpx;
					}
				}
				.cell{
					display: flex;
					justify-content: space-between;
					padding: 6rpx 0 6rpx 0;
					color: #cacaca;
					.price{
						font-size: 28rpx;
						color: #fac22b;
					}
					.nickname{
						color: #ffffff;
					}
				}
			}
			
		}
	}
</style>
